SUMMARY = "ps23 IPMI to DBus Sensor mapping."
PR = "r1"
LICENSE = "CLOSED"

inherit allarch

SRC_URI += " \
    file://ps23-ipmi-sensors.yaml \
    file://ps23-ipmi-inventory-sensors.yaml \
    "

S = "${WORKDIR}"

do_install() {
    install -m 0644 -D ps23-ipmi-sensors.yaml \
        ${D}${datadir}/${BPN}/ipmi-sensors.yaml
    install -m 0644 -D ps23-ipmi-inventory-sensors.yaml \
        ${D}${datadir}/${BPN}/ipmi-inventory-sensors.yaml
}

FILES:${PN}-dev = " \
    ${datadir}/${BPN}/ipmi-sensors.yaml \
    ${datadir}/${BPN}/ipmi-inventory-sensors.yaml \
    "
ALLOW_EMPTY:${PN} = "1"

